# Author: jiaxin
# week05
# passanger manner
name = input("name:")
age = input("age:")
job = input("job:")
salary = input("salary:")

# %s占位符
info = '''------INFO %s------
name:%s
age:%s
job:%s
salary:%s'''%(name,name,age,job,salary)

# .format()
info1 = '''------INFO {HTML_name} ------
name:{HTML_name}
age:{HTML_age}
job:{HTML_job}
salary:{HTML_salary}'''.format(HTML_name=name,HTML_age=age,HTML_job=job,HTML_salary=salary)

print(info1)

print(info)

# 假定你要求用户以2021-10-27 格式输入
user_input_time = "2021-10-27"
# 字符串拆分，方法split拆分完结果是一个列表
print(user_input_time.split('-'))
print(user_input_time.split('-')[0])